import { put, get } from "@/utils/request";

import { type addData } from "./type";

// 头像

export const accountUpdatePhotoAPI = (data: string) => {
  return put<string, addData>("/api/account/updatePhoto", data);
};

// 获取用户信息
export const accountGetUserInfoAPI = () => {
  return get<null, addData>("/api/account/getUserInfo");
};

// 修改密码
export const addcountgUpdate = (data: any) => {
  return put<any, any>("/api/account/updatePwd", data);
};
